﻿using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using OSharp.AspNetCore.Routing;
using OSharp.AspNetCore.SignalR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace wyxuan.yoyu.Web.Pack
{
    public class EndpointsPackEx: EndpointsPack
    {
        /// <summary>
        /// 重写以配置SignalR的终结点
        /// </summary>
        protected override IEndpointRouteBuilder SignalREndpoints(IEndpointRouteBuilder endpoints)
        {
            // 在这实现Hub的路由映射
            endpoints.MapHub<IMChatHub>("/chathub");
            return endpoints;
        }
    }
}
